public class MultiplayerTrainingSelectLayer : UILayer
{
	private MultiplayerRooms.RoomInfo roomInfo;

	private void OnEnable()
	{
		TableTennisMainNavigation instance = TableTennisMainNavigation.instance;
		TableTennisMainNavigation tableTennisMainNavigation = NavigationManager.instance as TableTennisMainNavigation;
		tableTennisMainNavigation.characterView.ShowUIBackground();
		tableTennisMainNavigation.characterView.ShowCarbonPanel(false);
		tableTennisMainNavigation.SetHeader(TableTennisMainNavigation.HeaderType.None);
	}

	public void Show(MultiplayerRooms.RoomInfo roomInfo)
	{
		this.roomInfo = roomInfo;
		TableTennisMainNavigation.instance.Push(base.gameObject);
	}

	public void OnRandomMatch()
	{
		TableTennisMainNavigation instance = TableTennisMainNavigation.instance;
		instance.lobbyLayer.FindMatch(roomInfo);
	}
}
